package com.wardrobe.mapper.slave.admin_operator_manager;

import com.wardrobe.soa.backend.operator.AdminOperatorBean;
import com.wardrobe.soa.backend.operator.PermissionBean;
import com.wardrobe.soa.backend.operator.RoleBean;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component("adminOperatorSlaveMapper")
public interface AdminOperatorSlaveMapper {
    List<Map<String, Object>> queryAdminList();

    AdminOperatorBean queryAdminById(@Param("operatorId") int operatorID);

    AdminOperatorBean queryAdminByNickName(@Param("nickName") String nickName);

    List<RoleBean> queryRoleList();

    List<PermissionBean> queryPermissionList();

    List<Map<String, Object>> queryPermissionListByRoleId(@Param("roleId") int roleId);

    List<Map<String, Object>> queryPermissionListByOperatorId(@Param("operatorId") int operatorId);

    List<Map<String, Object>> queryRolesListByOperatorId(@Param("operatorId") int operatorId);
}
